<?php
if ( ! defined( 'IN_IPB' ) )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
	exit();
}

class profile_market
{
	var $ipsclass;
	
	function return_html_block( $member=array() ) 
	{
		if ( ! is_object( $this->ipsclass->compiled_templates['skin_market'] ) )
		{
			$this->ipsclass->load_template('skin_market');
			$this->ipsclass->load_language('lang_market');
		}
		
		if ( ! is_array( $member ) OR ! count( $member ) )
		{
			return '';
		}
		
		$this->ipsclass->init_load_cache(array('market_category','market_items','market_plugin','market_wages'));
		
		require_once( ROOT_PATH."sources/market/market_class.php" );
		$this->ipsclass->market_class = new market_class();
		$this->ipsclass->market_class->ipsclass = &$this->ipsclass;
		$this->ipsclass->market_class->init_class();
		$this->ipsclass->market_class->load_class();
		$this->ipsclass->market_class->get_url_paths();
		
		require_once( ROOT_PATH."sources/market/public/view_member.php" );
		$view = new view_member();
		$view->ipsclass = &$this->ipsclass;
		
		return $view->output_member($member);
	}
	
}


?>